package cn.sirun.com.fca.personal.center.activity;

import android.content.Intent;
import android.os.Bundle;

import com.tencent.cloud.iov.router.Router;
import com.tencent.cloud.iov.util.ActivityUtils;
import com.tencent.cloud.uikit.ui.BaseIovActivity;

import cn.sirun.com.fca.personal.center.view.impl.PersonalOptionsFlowView;

/**
 * @author vinsonhuang
 * @date 2018/7/31
 */
public class PersonalOptionsActivity extends BaseIovActivity {

    private PersonalOptionsFlowView mPersonalOptionsFlowView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mPersonalOptionsFlowView = new PersonalOptionsFlowView(this);
        getLifecycle().addObserver(mPersonalOptionsFlowView);
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
//        if (AccountCommonConst.TURN_TO_LOGIN_ACTIVITY_RESULT_CODE == resultCode) {
//            LoginManager.getInstance().clearAccountInfo();
//            Intent intent = Router.fromPath(AccountActivityConst.Path.LOGIN);
//            intent.putExtra(AccountIntentConst.FROM, AccountIntentConst.MODIFY_LOGIN_PASSWORD);
//            ActivityUtils.startActivity(this, intent);
//        } else if (AccountCommonConst.QQ_AUTH_REQUEST_CODE == requestCode) {
//            mPersonalOptionsFlowView.handleActivityResult(requestCode, resultCode, data);
//        }
    }
}
